<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="美国,欧美,游戏专线独享EB,socks5代理IP,proxy"/>
<meta name="description" content="socks5自由在线提取系统，出售包日EB，S5代理，包月独享专线，保证独享专线一个IP一个人使用，大量proxy" />
<title>用户独享管理</title>
<style type="text/css">
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}

.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}

.STYLE6 {
	color: #000000;
	font-size: 14px;
}

.STYLE10 {
	color: #000000;
	font-size: 12px;
}

.STYLE19 {
	color: #344b50;
	font-size: 12px;
}

.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}

.STYLE22 {
	font-size: 12px;
	color: #295568;
}

.buylink {
	text-decoration: none;
	color: #000000;
}

.STYLEbtn {
	color: #344b50;
	font-size: 12px;
	border: 0px;
	background-color: #e1e2e3;
}
.change{
	color: #344b50;
	font-size: 12px;
	border: 0px;
	background-color: #e1e2e3;
}
.bordered {
	background-color:#FFF;
	border: solid #ccc 1px;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	-webkit-box-shadow: 0 1px 1px #ccc;
	-moz-box-shadow: 0 1px 1px #ccc;
	box-shadow: 0 1px 1px #ccc;
}

.bordered tr {
	-o-transition: all 0.1s ease-in-out;
	-webkit-transition: all 0.1s ease-in-out;
	-moz-transition: all 0.1s ease-in-out;
	-ms-transition: all 0.1s ease-in-out;
	transition: all 0.1s ease-in-out;
}

.bordered .highlight,.bordered tr:hover {
	background: #fbf8e9;
}

.bordered td,.bordered th {
	border-left: 1px solid #ccc;
	border-top: 1px solid #ccc;
	padding: 10px;
	text-align: left;
}

.bordered th {
	background-color: #dce9f9;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc),
		to(#dce9f9) );
	background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);
	background-image: -moz-linear-gradient(top, #ebf3fc, #dce9f9);
	background-image: -ms-linear-gradient(top, #ebf3fc, #dce9f9);
	background-image: -o-linear-gradient(top, #ebf3fc, #dce9f9);
	background-image: linear-gradient(top, #ebf3fc, #dce9f9);
	filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,
		startColorstr=#ebf3fc, endColorstr=#dce9f9 );
	-ms-filter:
		"progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#ebf3fc, endColorstr=#dce9f9)";
	-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
	-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
	border-top: none;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

.bordered td:first-child,.bordered th:first-child {
	border-left: none;
}

.bordered th:first-child {
	-moz-border-radius: 6px 0 0 0;
	-webkit-border-radius: 6px 0 0 0;
	border-radius: 6px 0 0 0;
}

.bordered th:last-child {
	-moz-border-radius: 0 6px 0 0;
	-webkit-border-radius: 0 6px 0 0;
	border-radius: 0 6px 0 0;
}

.bordered tr:last-child td:first-child {
	-moz-border-radius: 0 0 0 6px;
	-webkit-border-radius: 0 0 0 6px;
	border-radius: 0 0 0 6px;
}

.bordered tr:last-child td:last-child {
	-moz-border-radius: 0 0 6px 0;
	-webkit-border-radius: 0 0 6px 0;
	border-radius: 0 0 6px 0;
}
.selected{
background: #fbf8e9;
}
</style>

<script type="text/javascript" src="<%=path%>/js/jquery-1.4.3.js"></script>
<script type="text/javascript" src="<%=path%>/admin/js/userip.js"></script>
</head>
<body>
	<table width="100%" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td height="30"><table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr>
						<td height="24" bgcolor="#353c44"><table width="100%"
								border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td><table width="100%" border="0" cellspacing="0"
											cellpadding="0">
											<tr>
												<td height="19" valign="bottom"><img
													src="<%=path%>/images/tb.gif" width="14" height="14" /><span
													style="vertical-align: middle;" class="STYLE1">
														用户独享列表</span></td>
												<td valign="bottom"></td>
											</tr>
										</table></td>
									<td>&nbsp;</td>
								</tr>
							</table></td>
					</tr>
				</table></td>
		</tr>
		<tr>
			<td bgcolor="d3eaef" height="34px">
			   <form action="<%=path%>/admin/mgruip.do" method="post">
					<table border="0px">
						<tr>
							<td width="20%" align="right">用户名:&nbsp;</td>
							<td width="20%" style="color: #EEEEFF;">
								<input type="text" name="username" value='<s:property value="username"/>'>
							</td>
							<td style="color: #EEEEFF;"><input type="submit"
								value="查询" /></td>
						</tr>
					</table>
				</form>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td><table width="100%" border="0" cellpadding="0"
					cellspacing="1" bgcolor="#a8c7ce" class="bordered" id="onlyips">
					<tr>
						<td width="2%" height="20" bgcolor="d3eaef" class="STYLE10"><div
								align="center">
								&nbsp;
							</div></td>
						<td width="8%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">入口IP</span>
							</div></td>
						<td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">入口端口</span>
							</div></td>
						<td width="8%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">国家</span>
							</div></td>
						<td width="8%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">洲/地区</span>
							</div></td>
						<td width="8%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">城市</span>
							</div></td>
						<td width="6%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">用户</span>
							</div></td>
						<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">到期时间</span>
							</div></td>
						<td width="6%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">类型</span>
							</div></td>
						<td width="6%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">可用状态</span>
							</div></td>
						<td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">更换状态</span>
							</div></td>
						<td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">监测状态</span>
							</div></td>
						<td width="6%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">手动更换</span>
							</div></td>
					</tr>
					<tbody>
						<s:iterator value="page.result" var="o">
							<tr>
								<td height="20">
									<div align="center">
										<input type="checkbox" name="ipbox" id="ipid"
											value="<s:property value="#o.id"/>" />
									</div>
								</td>
								<td height="20" class="STYLE6" align="center">
										<span><s:property value="#o.entranceIp" /></span>
									<span></span>
								</td>
								<td height="20" class="STYLE6" align="center">
										<span><s:property value="#o.entrancePort" /></span>
									<span></span>
								</td>
								<td height="20" class="STYLE19"><div
										align="center">
										<span class="STYLE19"><s:property
												value="#o.country" /></span>
									</div></td>
								<td height="20" class="STYLE19"><div
										align="center">
										<span class="STYLE19"><s:property
												value="#o.region" /></span>
									</div></td>
								<td height="20" class="STYLE19"><div
										align="center">
										<span class="STYLE19"><s:property value="#o.city" /></span>
									</div></td>
								<td height="20" class="STYLE19" align="center"><div align="center">
										<span class="STYLE19"><s:property value="#o.username" /></span>
									</div></td>
								<td height="20">
									<div align="center" class="STYLE21">
										<s:if test="new java.util.Date()>new java.util.Date(#o.endTime)">
											<span class="STYLE19" style="color:red">
												<s:date name="new java.util.Date(#o.endTime)"format="yyyy-MM-dd HH:mm:ss" />
											</span>
										</s:if>
										<s:else>
											<span class="STYLE19">
												<s:date name="new java.util.Date(#o.endTime)"format="yyyy-MM-dd HH:mm:ss" />
											</span>
										</s:else>
									</div></td>
								<td height="20"><div align="center"
										class="STYLE21">
										<span class="STYLE19"><s:property value="#o.type" /></span>
									</div></td>
								<td height="20"><div align="center"
										class="STYLE21" id="state<s:property value="#o.id" />">
										<s:if test="#o.used==1">
										<span class="STYLE19" style="color:green;">可用</span>
										</s:if>
										<s:else>
										<span class="STYLE19" style="color:red;">不可用</span>
										</s:else>
									</div></td>
								<td height="20"><div align="center"
										class="STYLE21" id="state<s:property value="#o.id" />">
										<s:if test="#o.autoChange==1">
										<span class="STYLE19" style="color:red;">已更换</span>
										</s:if>
										<s:else>
										<span class="STYLE19" style="color:green;">未更换</span>
										</s:else>
									</div></td>
								<td height="20"><div align="center"
										class="STYLE21">
										<input type="button" class="STYLEbtn" value="检测"/>
										<input type="hidden" value='<s:property value="#o.id"/>'>
										<input type="hidden" value='<s:property value="#o.uid"/>'>
									</div>
								</td>
								<td height="20"><div align="center"
										class="STYLE21">
										<input type="button" class="change" value="更换" onclick="change(<s:property value="#o.uid"/>)"/>
									</div></td>
							</tr>
						</s:iterator>
					</tbody>
				</table></td>
		</tr>
		<tr>
			<td height="30"><table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr bgcolor="d3eaef">
						<td width="33%"><div align="left">
								<span class="STYLE22">&nbsp;&nbsp;&nbsp;&nbsp;Total:
								<strong> <s:property value="page.totalCount" /></strong> page  
								<strong><s:property value="page.currentPageNo" /></strong> of&nbsp;   
								<strong> <s:property value="page.lastPageNo" /> </strong> PageSize:
								<strong><s:property value="pageSize" /></strong>
								</span>
							</div></td>
						<td width="67%">
							<table width="312" border="0" align="right" cellpadding="0"
								cellspacing="0">
								<tr>
									<s:if test="1==page.currentPageNo">
										<td width="49"><div align="center">
												<input style="border-color: #EEEEFF; border: 0px;"
													type="button" disabled="disabled" value="First" />
											</div></td>
									</s:if>
									<s:else>
										<td width="49"><div align="center">
												<form action="<%=path%>/admin/mgruip.do" method="post">
													<input type="hidden" name="pageNo" value='1'>
													<input type="hidden" name="username" value="<s:property value="username"/>">
													<input type="hidden" name="type" value="<s:property value="type"/>">
													<input type="hidden" name="country" value="<s:property value="country"/>">
													<input type="hidden" name="region" value="<s:property value="region"/>">
													<input type="hidden" name="city" value="<s:property value="city"/>">
													<input type="submit" style="border-color: #EEEEFF; border: 0px;" value="First" > 
												</form>
											</div></td>
									</s:else>
									<s:if test="page.hasPrevPage()">
										<td width="49"><div align="center">
												<form action="<%=path%>/admin/mgruip.do" method="post">
													<input type="hidden" name="pageNo" value='<s:property value="pageNo-1"/>'>
													<input type="hidden" name="username" value="<s:property value="username"/>">
													<input type="hidden" name="type" value="<s:property value="type"/>">
													<input type="hidden" name="country" value="<s:property value="country"/>">
													<input type="hidden" name="region" value="<s:property value="region"/>">
													<input type="hidden" name="city" value="<s:property value="city"/>">
													<input type="submit" style="border-color: #EEEEFF; border: 0px;" value="Prev" > 
												</form>
											</div></td>
									</s:if>
									<s:else>
										<td width="49"><div align="center">
												<input style="border-color: #EEEEFF; border: 0px;"
													type="button" disabled="disabled" value="Prev" />
											</div></td>
									</s:else>
									<s:if test="page.hasNextPage()">
										<td width="49"><div align="center">
												<form action="<%=path%>/admin/mgruip.do" method="post">
													<input type="hidden" name="pageNo" value='<s:property value="pageNo+1"/>'>
													<input type="hidden" name="username" value="<s:property value="username"/>">
													<input type="hidden" name="type" value="<s:property value="type"/>">
													<input type="hidden" name="country" value="<s:property value="country"/>">
													<input type="hidden" name="region" value="<s:property value="region"/>">
													<input type="hidden" name="city" value="<s:property value="city"/>">
													<input type="submit" style="border-color: #EEEEFF; border: 0px;" value="Next" > 
												</form>
											</div></td>
									</s:if>
									<s:else>
										<td width="49"><div align="center">
												<input style="border-color: #EEEEFF; border: 0px;"
													type="button" disabled="disabled" value="Next" />
											</div></td>
									</s:else>
									<s:if test="page.currentPageNo==page.lastPageNo||page.totalCount==0">
										<td width="49"><div align="center">
												<input style="border-color: #EEEEFF; border: 0px;"
													type="button" disabled="disabled" value="Last" />
											</div></td>
									</s:if>
									<s:else>
										<td width="49"><div align="center">
												<form action="<%=path%>/admin/mgruip.do" method="post">
													<input type="hidden" name="pageNo" value='<s:property value="page.lastPageNo"/>'>
													<input type="hidden" name="username" value="<s:property value="username"/>">
													<input type="hidden" name="type" value="<s:property value="type"/>">
													<input type="hidden" name="country" value="<s:property value="country"/>">
													<input type="hidden" name="region" value="<s:property value="region"/>">
													<input type="hidden" name="city" value="<s:property value="city"/>">
													<input type="submit" style="border-color: #EEEEFF; border: 0px;" value="Prev" > 
												</form>
											</div></td>
									</s:else>
									<td width="37" class="STYLE22"><div align="center">Go</div></td>
									<td colspan="3" width="97">
										<form action="<%=path%>/admin/mgruip.do" method="post">
											<table>
												<tr>
													<td>
														<div align="center">
														<input type="hidden" name="username" value="<s:property value="username"/>">
														<input type="hidden" name="type" value="<s:property value="type"/>">
														<input type="hidden" name="country" value="<s:property value="country"/>">
														<input type="hidden" name="region" value="<s:property value="region"/>">
														<input type="hidden" name="city" value="<s:property value="city"/>">
															<input type="text" name="pageNo" id="pageNo"
																style="width: 20px; height: 12px; font-size: 12px; border: solid 1px #7aaebd;" />
														</div>
													</td>
													<td width="22" class="STYLE22"><div align="center">&nbsp;page</div></td>
													<td width="35"><input type="submit" value="Go"
														style="border-color: #EEEEFF; border: 0px; margin-right: 10px;" onclick="return search(<s:property value="page.lastPageNo"/>)"></td>
												</tr>
											</table>
										</form>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table></td>
		</tr>
	</table>
</body>
</html>
